<template>
  <div>
     <h1>登录页面</h1>
     <button @click="toLogin" style="width:300px;">登录</button>
  </div>
</template>
<script>
export default {
   methods:{
    toLogin(){ //登录
      let token="237sdnflsahdli29374234234n23lhsayf"
      localStorage.token=token;
      this.$router.push("/layout/home") //首页
    }
   }
}
</script>
